package com.platform.utils;

/**
 * Created by zhurusen on 2018/7/3
 */
public class Umengpush {
//    private String appkey = "5aebf4068f4a9d30bf0000f6";
//    private String appMasterSecret = "AgLrW14UBtFkip-NhLRC_7aU04avJNeZsQm7b7OE3_pd";
//    private String timestamp = null;
//    private PushClient client = new PushClient();
//
//    public void sendAndroidBroadcast(String deviceToken) throws Exception {
//        AndroidBroadcast broadcast = new AndroidBroadcast(appkey, appMasterSecret);
//        broadcast.setTicker("Android broadcast ticker");
//        broadcast.setTitle("定时推送");
//        broadcast.setStartTime("2018-05-23 20:58:00");
//        broadcast.setText("Android broadcast text");
//        broadcast.goAppAfterOpen();
//        broadcast.setDisplayType(AndroidNotification.DisplayType.NOTIFICATION);
//        // TODO Set 'production_mode' to 'false' if it's a test device.
//        // For how to register a test device, please see the developer doc.
//        broadcast.setProductionMode();
//        // Set customized fields
//        broadcast.setExtraField("test", "helloworld");
//        client.send(broadcast);
//    }

}
